package com.tpln.service.impl;

import com.tpln.mapper.AuthMapper;
import com.tpln.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthServiceImpl implements AuthService {
    @Autowired
    private AuthMapper authMapper;

    @Override
    public String auth(String userName, String password) {
        String result = authMapper.auth(userName,password);
       return result;
    }

    @Override
    public String findUserNameById(String userId) {
        String userName = authMapper.selectUserNameById(userId);
        return userName;
    }
}
